//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wsd.smartcarwasher.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Date;

@ApiModel("用户信息")
public class UserInfo implements Serializable {
    @ApiModelProperty("用户id")
    private String userId;
    @ApiModelProperty("用户id")
    private String password;
    @ApiModelProperty("用户id")
    private Integer state;
    @ApiModelProperty("用户id")
    private String username;
    private String role;
    private String salt;
    @ApiModelProperty("注册时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date registerTime;
    @ApiModelProperty("最后登录时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date lastLoginTime;
    @ApiModelProperty("最后登录Ip")
    private String lastLoginIp;
    private Integer userLevelId;
    @ApiModelProperty("微信名")
    private String nickname;
    @ApiModelProperty("手机号码")
    private String mobile;
    @ApiModelProperty("注册Ip")
    private String registerIp;
    @ApiModelProperty("头像")
    private String avatar;
    private String openId;
    @ApiModelProperty("小程序二维码链接")
    private String wxCodeUrl;
    @ApiModelProperty("推广人的id")
    private String fromId;
    @ApiModelProperty("弹出0不弹出/1弹出")
    private Integer alert;
    @ApiModelProperty("用户unionId")
    private String unionId;

    @ApiModelProperty("余额")
    private BigDecimal balance;


    public BigDecimal getBalance() {

        return balance;
    }
    
    public void setBalance(BigDecimal balance) {
        balance.setScale(2, RoundingMode.HALF_UP);
        this.balance = balance;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public Integer getAlert() {
        return alert;
    }

    public void setAlert(Integer alert) {
        this.alert = alert;
    }

    private int cardNumber;

    private int couponNumber;

    private int orderNumber;

    public int getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(int orderNumber) {
        this.orderNumber = orderNumber;
    }

    public int getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(int cardNumber) {
        this.cardNumber = cardNumber;
    }

    public int getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(int couponNumber) {
        this.couponNumber = couponNumber;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public UserInfo() {
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return this.state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRole() {
        return this.role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getSalt() {
        return this.salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getRegisterTime() {
        return this.registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLoginTime() {
        return this.lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return this.lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getUserLevelId() {
        return this.userLevelId;
    }

    public void setUserLevelId(Integer userLevelId) {
        this.userLevelId = userLevelId;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRegisterIp() {
        return this.registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getOpenid() {
        return this.openId;
    }

    public void setOpenid(String openid) {
        this.openId = openid;
    }

    public String getWxCodeUrl() {
        return this.wxCodeUrl;
    }

    public void setWxCodeUrl(String wxCodeUrl) {
        this.wxCodeUrl = wxCodeUrl;
    }
}
/*
package com.wsd.smartcarwasher.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "用户信息")
public class UserInfo implements Serializable {

    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "用户id")
    private String password;
    @ApiModelProperty(value = "用户id")
    private Integer state;
    @ApiModelProperty(value = "用户id")
    private String username;
    private String role;
    private String salt;

    //注册时间
    @ApiModelProperty(value = "注册时间")
    private Date registerTime;
    //最后登录时间
    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;
    //最后登录Ip
    @ApiModelProperty(value = "最后登录Ip")
    private String lastLoginIp;
    //会员等级
    private Integer userLevelId;
    //微信名
    @ApiModelProperty(value = "微信名")
    private String nickname;
    //手机号码
    @ApiModelProperty(value = "手机号码")
    private String mobile;
    //注册Ip
    @ApiModelProperty(value = "注册Ip")
    private String registerIp;
    //头像
    @ApiModelProperty(value = "头像")
    private String avatar;
    //微信Id
    private String openId;
    //小程序二维码链接
    @ApiModelProperty(value = "小程序二维码链接")
    private String wxCodeUrl;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getUserLevelId() {
        return userLevelId;
    }

    public void setUserLevelId(Integer userLevelId) {
        this.userLevelId = userLevelId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getOpenid() {
        return openId;
    }

    public void setOpenid(String openid) {
        this.openId = openid;
    }

    public String getWxCodeUrl() {
        return wxCodeUrl;
    }

    public void setWxCodeUrl(String wxCodeUrl) {
        this.wxCodeUrl = wxCodeUrl;
    }
}
*/
